﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace QlrrPrintService.Common.Command
{
    /// <summary>
    /// 定義標籤紙的寬度及高度
    /// </summary>
    public class Size:PrintParmMN,IToTSPLCommand
    {
        public Size()
            : base(100, 100)
        { }

        #region IToTSPLCommand 成员

        public byte[] ToTSPLCommandByte(int mm_to_dot)
        {
            return Util.GetEncodingBytes(ToTSPLCommandAscii(mm_to_dot));
        }

        public string ToTSPLCommandAscii(int mm_to_dot)
        {
            return string.Format("SIZE {0} mm,{1} mm{2}",_m,_n,Common.TSPL_END);
        }

        #endregion
    }
}
